<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>学校同位分管理</title>
	<meta name="decorator" content="default"/>
</head>
<body>
<div class="main-content">
    <tags:breadcrumb menuId="学校管理" />
    <div class="page-content">
    	<div class="search-block">
			<form:form id="searchForm" modelAttribute="schoolTwfInfo" action="${ctx}/score/schoolTwfInfo/" method="post" class="form-horizontal">
			<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
			<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
			<div class="form-group" style="margin-bottom: 0px;">
				<label class="col-sm-1 no-padding-right control-label">学校编码：</label>
				<div class="col-sm-2">
					<form:input path="schoolCode" htmlEscape="false" maxlength="20" class="col-sm-8"/>
				</div>
				<label class="col-sm-1 no-padding-right control-label">批次：</label>
				<div class="col-sm-2">
					<form:select path="batchLevel" class="col-sm-10">
						<form:option value="" label="-选择批次-"/>
						<form:options items="${fns:getDictList('batch_level')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
					</form:select>
				</div>
				<label class="col-sm-1 no-padding-right control-label">科目类别：</label>
				<div class="col-sm-2">
					<form:select path="kemuType" class="col-sm-10">
						<form:option value="" label="-选择科目类别-"/>
						<form:options items="${fns:getDictList('kemu_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
					</form:select>
				</div>
				<label class="col-sm-1 no-padding-right control-label">省份：</label>
				<div class="col-sm-2">
					<form:input path="province" htmlEscape="false" maxlength="32" class="col-sm-8"/>
				</div>
			</div><hr>
			<div class="form-group" style="margin-bottom: 0px;">
				<label class="col-sm-1 no-padding-right control-label">学校名称：</label>
				<div class="col-sm-4">
					<form:input path="schoolName" htmlEscape="false" maxlength="20" class="col-sm-8"/>
				</div>
				<div class="col-sm-2">
					<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
				</div>
			</div>
		</form:form>
	</div>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th rowspan="2">学校编码</th>
				<th rowspan="2">学校名称</th>
				<th rowspan="2">批次</th>
				<th rowspan="2">科目类别</th>
				<th colspan="3">近三年最低同位分</th>
				<th colspan="3">近三年平均同位分</th>
				<th colspan="3">近三年最高同位分</th>
				<th rowspan="2">省份</th>
				<shiro:hasPermission name="score:schoolTwfInfo:edit"><th rowspan="2">操作</th></shiro:hasPermission>
			</tr>
			<tr>
				<th>最小值</th>
				<th>中间值</th>
				<th>最大值</th>
				<th>最小值</th>
				<th>中间值</th>
				<th>最大值</th>
				<th>最小值</th>
				<th>中间值</th>
				<th>最大值</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="schoolTwfInfo">
			<tr>
				<td><a href="${ctx}/score/schoolTwfInfo/form?id=${schoolTwfInfo.id}">
					${schoolTwfInfo.schoolCode}
				</a></td>
				<td>${schoolTwfInfo.schoolName}</td>
				<td>
					${fns:getDictLabel(schoolTwfInfo.batchLevel, 'batch_level', '')}
				</td>
				<td>
					${fns:getDictLabel(schoolTwfInfo.kemuType, 'kemu_type', '')}
				</td>
				<td>
					${schoolTwfInfo.min1}
				</td>
				<td>
					${schoolTwfInfo.min2}
				</td>
				<td>
					${schoolTwfInfo.min3}
				</td>
				<td>
					${schoolTwfInfo.avg1}
				</td>
				<td>
					${schoolTwfInfo.avg2}
				</td>
				<td>
					${schoolTwfInfo.avg3}
				</td>
				<td>
					${schoolTwfInfo.max1}
				</td>
				<td>
					${schoolTwfInfo.max2}
				</td>
				<td>
					${schoolTwfInfo.max3}
				</td>
				<td>
					${schoolTwfInfo.provinceName}
				</td>
				<shiro:hasPermission name="score:schoolTwfInfo:edit"><td>
    				<a href="${ctx}/score/schoolTwfInfo/form?id=${schoolTwfInfo.id}">修改</a>
					<a href="${ctx}/score/schoolTwfInfo/delete?id=${schoolTwfInfo.id}" onclick="return confirmx('确认要删除该学校同位分吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
    </div>
</div>
<script type="text/javascript">
	$(document).ready(function() {
        //显示高级查询
        $(".search_link").click(function(){
            if($(".search-block").is(":visible")){
                $(".search-block").hide();
                $(".search_link").text("高级查询");
            }else{
                $(".search-block").show();
                $(".search_link").text("隐藏查询");
            }
        });
	});
	function page(n,s){
		$("#pageNo").val(n);
		$("#pageSize").val(s);
		$("#searchForm").submit();
		return false;
	}
</script>
</body>
</html>